include_rules = [
    # Don't depend on platform/.
    "-third_party/blink/renderer/platform",

    # Module.
    "+third_party/blink/renderer/platform/graphics",

    # Dependencies.
    "+base/no_destructor.h",
    "+base/strings/string_number_conversions.h",
    "+base/strings/string_split.h",
    "+base/strings/string_util.h",
    "+base/threading/sequenced_task_runner_handle.h",
    "+base/threading/thread_restrictions.h",
    "+base/barrier_closure.h",
    "+cc",
    "+components/paint_preview/common",
    "+components/power_scheduler",
    "+components/viz/client",
    "+components/viz/common",
    "+gpu/config",
    "+gpu/command_buffer/client/context_support.h",
    "+gpu/command_buffer/client/gles2_interface.h",
    "+gpu/command_buffer/client/gpu_memory_buffer_manager.h",
    "+gpu/command_buffer/client/raster_interface.h",
    "+gpu/command_buffer/client/shared_image_interface.h",
    "+gpu/command_buffer/client/webgpu_interface.h",
    "+gpu/command_buffer/common/gles2_cmd_copy_texture_chromium_utils.h",
    "+gpu/command_buffer/common/gpu_memory_buffer_support.h",
    "+gpu/command_buffer/common/capabilities.h",
    "+gpu/command_buffer/common/mailbox.h",
    "+gpu/command_buffer/common/mailbox_holder.h",
    "+gpu/command_buffer/common/shared_image_usage.h",
    "+gpu/command_buffer/common/sync_token.h",
    "+gpu/ipc/common/mailbox.mojom-blink.h",
    "+media/base/media_switches.h",
    "+media/base/video_frame.h",
    "+media/base/video_frame_pool.h",
    "+media/base/video_transformation.h",
    "+media/base/video_types.h",
    "+media/base/video_util.h",
    "+media/base/wait_and_replace_sync_token_client.h",
    "+media/media_buildflags.h",
    "+media/renderers/paint_canvas_video_renderer.h",
    "+media/renderers/video_resource_updater.h",
    "+media/renderers/video_frame_rgba_to_yuva_converter.h",
    "+media/video/gpu_video_accelerator_factories.h",
    "+media/video/renderable_gpu_memory_buffer_video_frame_pool.h",
    "+services/viz/public/mojom",
    "+services/viz/public/cpp/gpu/context_provider_command_buffer.h",
    "+skia",
    "+third_party/blink/renderer/platform/context_lifecycle_notifier.h",
    "+third_party/blink/renderer/platform/cpu/mips/common_macros_msa.h",
    "+third_party/blink/renderer/platform/disk_data_metadata.h",
    "+third_party/blink/renderer/platform/disk_data_allocator.h",
    "+third_party/blink/renderer/platform/disk_data_allocator_test_utils.h",
    "+third_party/blink/renderer/platform/fonts",
    "+third_party/blink/renderer/platform/geometry",
    "+third_party/blink/renderer/platform/heap",
    "+third_party/blink/renderer/platform/instrumentation/histogram.h",
    "+third_party/blink/renderer/platform/image-decoders",
    "+third_party/blink/renderer/platform/image-encoders",
    "+third_party/blink/renderer/platform/instrumentation",
    "+third_party/blink/renderer/platform/json",
    "+third_party/blink/renderer/platform/mojo/mojo_binding_context.h",
    "+third_party/blink/renderer/platform/mojo/heap_mojo_receiver.h",
    "+third_party/blink/renderer/platform/mojo/heap_mojo_remote.h",
    "+third_party/blink/renderer/platform/mojo/heap_mojo_wrapper_mode.h",
    "+third_party/blink/renderer/platform/mojo/mojo_helper.h",
    "+third_party/blink/renderer/platform/platform_export.h",
    "+third_party/blink/renderer/platform/runtime_enabled_features.h",
    "+third_party/blink/renderer/platform/scheduler",
    "+third_party/blink/renderer/platform/scroll",
    "+third_party/blink/renderer/platform/wtf/shared_buffer.h",
    "+third_party/blink/renderer/platform/testing",
    "+third_party/blink/renderer/platform/text",
    "+third_party/blink/renderer/platform/timer.h",
    "+third_party/blink/renderer/platform/region_capture_crop_id.h",
    "+third_party/blink/renderer/platform/transforms",
    "+third_party/blink/renderer/platform/waitable_event.h",
    "+third_party/blink/renderer/platform/weborigin/kurl.h",
    "+third_party/blink/renderer/platform/web_task_runner.h",
    "+third_party/blink/renderer/platform/wtf",
    "+ui/base/resource/resource_scale_factor.h",
    "+ui/gfx/geometry",
]

specific_include_rules = {
  ".*_test.cc": [
    "+components/viz/test",
    "+ui/gl/buffer_format_utils.h",
  ],
  "(graphics_context|skia_utils)\.cc" : [ "+ui/base/ui_base_features.h" ],
  "graphics_context.h": [
    "+third_party/blink/public/mojom/frame/frame_owner_properties.mojom-blink.h",
  ],
  "rw_buffer_test.cc": [
    "+base/threading/platform_thread.h",
  ],
  "video_frame_image_util_test.cc": [
    "+media/renderers/shared_image_video_frame_test_utils.h",
  ],
}
